<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html dir="ltr" lang="en-gb">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="imagetoolbar" content="no">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>管理员界面</title>
<link type="text/css" rel="Stylesheet"
	href="/PCT/StyleAll/styleLogIn.css" />
<link type="text/css" rel="Stylesheet" href="/PCT/StyleAll/styleAll.css" />
<script type="text/javascript">
	function exit_confirm() {
		var r = confirm("您确认要退出病友互助社区吗");
		if (r == true) {
			window.close();
			window.open("login.htm");
		}
	}
</script>
<style type="text/css">
.STYLE1 {
	font-size: 36px
}
</style>
</head>

<body class="browser-webkit can-transform has-shadows transform">
	<div class="header">
		<a> <img src="/PCT/image/Logo Small.png" width=1000px height=50px
			alt="Logo Small">
		</a>
	</div>
	<p>&nbsp;</p>
	<div class="page">
		<div id="page-header">
			<div id="search-box">
				<s:if test="#session.status.currentUser.userType == 1">病友：</s:if>
				<s:elseif test="#session.status.currentUser.userType == 2">医生：</s:elseif>
				<s:elseif test="#session.status.currentUser.userType == 3">管理员：</s:elseif>
				<a><span><s:property
							value="#session.status.currentUser.username" /></span></a> <a
					href=" <s:url action='logout' namespace='/secure'/>">退出</a>
			</div>
			<form id="search" name="search" action="/PCT/public/search.action"
				style="display: inline">
				关键字：<input name="target" type="text" /> <select name="searchType">
					<option value="post">搜索帖子</option>
					<option value="topic">搜索主题</option>
					<option value="group">搜索群</option>
				</select> <input type="submit" value="GO" class="button2" />
			</form>
			<%-- <a href="<s:url action='redirectResult' namespace='/public'>
							<s:param name='redirectType' value='1' />
						 </s:url>" class="button2">注册</a> --%>
			<a href="<s:url action='listUser' namespace='/public'> </s:url>" class="button2">用户管理</a>
			<a href="<s:url action='exportSheet' namespace='/public'> </s:url>"
				class="button2">导出数据</a>
		</div>
		<div id="page-body">
			<h2>&nbsp;</h2>
			<h2>用户举报：</h2>
			<div class="search post bg1">
				<s:iterator value="#session.reportMsg" status="itStatus"
					var="Rmessage">
					<div class="inner">
						<span class="corners-top"><span></span></span>
						<div class="postbody">
							<h3>
								<a
									href="http://demo.phpbb3styles.net/viewtopic.php?style=704&f=2&t=3&p=3&hilit=sticky#p3"><span
									class="posthilit">用户举报<s:property
											value='#itStatus.count' /></span></a>
							</h3>
							<div class="content">
								<s:property value="#Rmessage.m_badInfo" />
							</div>
						</div>
						<dl class="postprofile">
							<dt class="author">
								由<a
									href="http://demo.phpbb3styles.net/memberlist.php?style=704&mode=viewprofile&u=54"><s:property
										value="#Rmessage.userID" /></a>举报
							</dt>
							<dd>
								<s:property value="#Rmessage.m_time" />
							</dd>
							<dd>
								群组:
								<s:property value="#Rmessage.m_groupName" />
							</dd>
							<dd>
								话题编号:
								<s:property value="#Rmessage.m_topicID" />
							</dd>
							<dd>
								话题标题:
								<s:property value="#Rmessage.topicTitle" />
							</dd>
							<dd>&nbsp;</dd>
						</dl>
						<ul class="searchresults">
							<li><a
								href="<s:url action='HandleBadInfo' namespace='/public'>
							<s:param name='action'>ignore</s:param>
							<s:param name='postID' value="#Rmessage.m_postID"/>
							<s:param name='messageID' value="#Rmessage.messageID"/>
						 </s:url>"
								class="button2">忽略</a></li>
							<br />
							<br />
							<li><a
								href="<s:url action='HandleBadInfo' namespace='/public'>
							<s:param name='action'>remove</s:param>
							<s:param name='postID' value="#Rmessage.m_postID"/>
							<s:param name='messageID' value="#Rmessage.messageID"/>
						 </s:url>"
								class="button2">删除</a></li>
						</ul>
						<span class="corners-bottom"><span></span></span>
					</div>
				</s:iterator>
			</div>
			<h2>群批准：</h2>
			<div class="search post bg1">
				<s:iterator value="#session.applyMsg" var="message">
					<div class="inner">
						<span class="corners-top"><span></span></span>
						<div class="postbody">
							<h3>
								<span class="posthilit"><s:property value="groupname" /></span>
							</h3>
							<div class="content">
								<s:property value="groupDescription" />
							</div>
						</div>
						<dl class="postprofile">
							<dt class="author">
								由
								<s:property value="username" />
								申请
							</dt>
							<dd>11:34，2012年3月16日</dd>
							<dd>&nbsp;</dd>
						</dl>
						<ul class="searchresults">
							<li><a
								href="<s:url action='handleGroupApplication' namespace='/public'>
									<s:param name='result' value='true' />
									<s:param name='groupname' value='#message.groupname' />
									<s:param name='groupDescription' value='#message.groupDescription' />
									</s:url>"
								class="right">批准</a></li>
							<li><a
								href="<s:url action='handleGroupApplication' namespace='/public'>
									<s:param name='result' value='false' />
									<s:param name='groupname' value='#message.groupname' />
									<s:param name='groupDescription' value='#message.groupDescription' />
							</s:url>"
								class="right">拒绝</a></li>
						</ul>
						<span class="corners-bottom"><span></span></span>
					</div>
				</s:iterator>

			</div>
			<div>
				<!-- <a><input type="submit" name="firstpage" value="首页"
					class="button2"></a> <a><input type="submit" name="page_up"
					value="上一页" class="button2"></a> <a><input type="submit"
					name="page_down" value="下一页" class="button2"></a> <a><input
					type="submit" name="lastpage" value="尾页" class="button2"></a> <a>页次：1/6页</a>
				<a>第<input type="text" name="pagenumber" value="" size="5"
					class="button2">页
				</a> <a><input type="submit" name="submit" value="GO"
					class="button2"></a> -->
			</div>
		</div>
	</div>
	<div class="footer">
		<div class="copyright">
			<p class="copy-left">上海交通大学 软件学院</p>
			<p class="copy-right">
				设计风格 <a href=" http://www.artodia.com/">Artodia</a> 。
			</p>
		</div>
	</div>
</body>
</html>
